import axios from '@/api'

export function login({ username, password }) {
  return axios.post('/auth/token', { username, password })
}
export function user() {
  return axios.get('/user/info')
}
export function menu() {
  return axios.get('/sys/menus')
}
